/**
 * @description: brandconfig参数校验
 * @version: 0.0.1
 * @author: ljr
 * @Date: 2023-06-08 14:07:35
 */

import { Rule, RuleType } from '@midwayjs/validate';
import { requiredNumber, requiredString } from "./common";

export class UpdateBrandsDTO {
  @Rule(requiredNumber)
  id: number;
  @Rule(requiredString)
  brandName: string;
  @Rule(requiredString)
  alarmConfig: string;
  @Rule(RuleType.any())
  brandImg: any;
}

export class InsertBrandsDTO {
  @Rule(requiredString)
  brandName: string;
  @Rule(requiredString)
  alarmConfig: string;
  @Rule(RuleType.any())
  brandImg: any;
}

